package com.competition.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "agricultural_training")
public class AgriculturalTraining {

    @TableId
    @Column(name = "agricultural_training_id")
    private String agriculturalTrainingId;

    @Column(name = "agricultural_training_title")
    private String agriculturalTrainingTitle;

    @Column(name = "agricultural_training_price")
    private Integer agriculturalTrainingPrice;

    @Column(name = "agricultural_training_count")
    private Integer agriculturalTrainingCount;

    @Column(name = "agricultural_training_img")
    private String agriculturalTrainingImg;
}
